<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/asd',function (){
    for ($i=0;$i<1000;$i++)
        echo uniqid().'<br>';
});

Route::get('/', "Home\IndexController@index")->name('home');
Route::get('/peiwan',"peiwan\peiwanController@index")->name('peiwan');
Route::get('login',"UsersController@login")->name('users.login');
Route::get('/users/{user}', 'UsersController@show')->name('users.show');
Route::post('users/{user}/update','UsersController@update')->name('users.update');
Route::post('/users',"UsersController@store")->name('users.store');
//用户登录与退出
Route::post('login','SessionsController@creat')->name('users.login');
Route::delete('logout','SessionsController@destroy')->name('users.logout');
//安全中心
Route::get('safe/{user}', 'UsersController@safe_center')->name('safe_center');
Route::post('safe/{user}/edit_pass','safe\SafeCenterController@edit_pass')->name('edit_pass');
Route::post('safe/{user}/edit_mobile','safe\SafeCenterController@edit_mobile')->name('edit_mobile');
Route::post('safe/{user}/edit_wechat','safe\SafeCenterController@edit_wechat')->name('edit_wechat');
Route::post('safe/{user}/bound_card','safe\SafeCenterController@bound_card')->name('bound_card');
Route::post('safe/get_card','safe\SafeCenterController@get_card')->name('get_card');
//申请入驻
Route::get('sqrz/{user}', 'UsersController@sqrz')->name('sqrz');
Route::post('sqrz/city','CityController@citylist')->name('citylist');
Route::post('sqrz/{user}/create','ServiceController@create')->name('service.create');
Route::post('sqrz/getdata','ServiceController@getdata')->name('getdata');
Route::post('sqrz/getservicedata','ServiceController@getservice')->name('getservice');
Route::post('sqrz/{user}/videoup','ServiceController@videoUpload')->name('videoupload');
Route::post('sqrz/{user}/voiceup','ServiceController@voiceUpload')->name('voiceupload');
Route::post('sqrz/{user}/avatarup','ServiceController@avatarup')->name('avatarupload');
Route::post('sqrz/{user}/titleup','ServiceController@titleup')->name('titleupload');
//礼物记录
Route::get('liwu/{user}','UsersController@liwu')->name('liwu');
//热线记录
Route::get('rexian/{user}','UsersController@rexian')->name('rexian');